package com.game.pacman.client;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;

import javax.swing.JLabel;
import javax.swing.JPanel;

public class PlayScreenInfo extends JPanel {
	JLabel labelScoreTitle;
	JLabel labelScore;
	int x, y;
	public PlayScreenInfo(int x,int y) {
		this.x=x;
		this.y=y;
		init();
	}
	
	public void init(){
		setBackground(Color.white);
		setLayout(null);
		//setPreferredSize(new Dimension(Constants.BUTTON_WIDTH,Constants.WINDOW_HEIGHT));
		setBounds(x,y,Constants.BUTTON_WIDTH,Constants.MAP_HEIGHT);
		//타이틀 표시
		labelScoreTitle=new JLabel("SCORE");
		labelScoreTitle.setHorizontalAlignment(JLabel.CENTER);
		//labelScoreTitle.setForeground(Color.BLUE);
		labelScoreTitle.setFont(new Font("Dialog", Font.BOLD, 14));
		labelScoreTitle.setBounds(
				0,0,Constants.BUTTON_WIDTH,Constants.BUTTON_HEIGHT);
		add(labelScoreTitle);

		labelScore=new JLabel("100");
		labelScore.setHorizontalAlignment(JLabel.CENTER);
		//labelScore.setForeground(Color.BLUE);
		labelScore.setFont(new Font("Dialog", Font.BOLD, 14));
		labelScore.setBounds(
				0,labelScoreTitle.getY()+Constants.gap*3,Constants.BUTTON_WIDTH,Constants.BUTTON_HEIGHT);
		add(labelScore);
//		buttonVictory=new JButton();
//		buttonVictory.setText("승리");
//		
//		buttonVictory.setBounds(
//			(Constants.WINDOW_WIDTH-Constants.BUTTON_WIDTH)/2-(Constants.BUTTON_WIDTH+Constants.gap),
//			Constants.WINDOW_HEIGHT-Constants.BUTTON_HEIGHT-Constants.gap,
//			Constants.BUTTON_WIDTH,
//			Constants.BUTTON_HEIGHT);
//		buttonVictory.addActionListener(this);
//		
//		add(buttonVictory);
	}
}
